package com.yxuan.springboot.model;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 
 * @author zchao
 *    Operation实体类
 * @date 2023-05-14 20:40:39
 */
@Data
@ApiModel(description = "文章操作表")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class Operation implements Serializable{

	  private static final long serialVersionUID = 1L;
	
	  @ApiModelProperty(value = "操作表id（主键）")
	  private Integer id;
	  @ApiModelProperty(value = "用户Id")
	  private String userLogin;
	  @ApiModelProperty(value = "文章ID")
	  private String information;
	  @ApiModelProperty(value = "操作（0点赞，1收藏，2阅读，3分享）")
	  private String operation;
      //时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date operationTime;
	  @ApiModelProperty(value = "逻辑删除: 0未删除,1已删除(默认0)")
	  private String deleteState;


}
